<?php
/**
 * IndexController
 * 
 * @author
 * @version 
 */

class Calendar_IndexController extends Zend_Controller_Action
{
    public function init()
    {
        $this->_helper->layout->setLayout('index');
        $this->_helper->actionStack('rendernavbar','menu','default');
    }
    
    /**
     * The default action - show the home page
     */
    public function indexAction()
    {
        $this->view->date_today = new Zend_Date;
        $this->view->date_monthview = clone $this->view->date_today; # TODO: Real implementation of parameters
        $this->view->date_monthview->setDay(1);
    }
    
    public function displayAction()
    {
        $this->view->date_today = new Zend_Date;
        $this->view->date_monthview = clone $this->view->date_today;
        $this->view->date_monthview->setDay(1);
        $this->view->date_monthview->setMonth($this->getRequest()->getParam('month'));
        $this->view->date_monthview->setYear($this->getRequest()->getParam('year'));
        $this->render('index');
    }
}
